import request, {ApiResponse} from "@/plugins/axios";

// export const getAllCode = (data) => {
//     return request.post<any, ApiResponse<any>>(`/code/getAll`, data);
// };

export const generateApi = (data) => {
    return request.post<any, ApiResponse<any>>(`/code/generate`, data);
};


export const configBySql = (data) => {
    return request.post<any, ApiResponse<any>>(`/code/configBySql`, data);
};

export const configByEntity = (data) => {
    return request.post<any, ApiResponse<any>>(`/code/configByEntity`, data);
};

export const apiInfoApi = (data) => {
    return request.post<any, ApiResponse<any>>(`/code/apiInfo`, data);
};

export const openFolder = (data) => {
    return request.post<any, ApiResponse<any>>(`/code/openFolder`, data);
};